package com.jxb.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

// import com.jxb.config.FeignConfig;

import feign.Param;
import feign.RequestLine;

@FeignClient(value = "mall-order",path = "/order",fallbackFactory =
        UmsMemberFeginFallbackFactory.class)
public interface OrderFeignService {

    @RequestMapping("/findOrderByUserId/{userId}")
    public String findOrderByUserId(@PathVariable("userId") Integer userId);

    // @RequestLine("GET /findOrderByUserId/{userId}")
    // public String findOrderByUserId(@Param("userId") Integer userId);
}